<template>
   <div>
      <button @click="decrement">-</button>
      <input type="number" v-model="count">
      <button @click="increment">+</button>
    </div>
</template>



<style>
</style>


<script>
export default {
  data() {
    return {
      count: 1,
    }
  },
  methods: {
    increment() {
      this.count++
    },
    decrement() {
      if (this.count > 1) {
        this.count--
      }
    },
  },
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
